import { NgModule } from "@angular/core";
import { Routes, RouterModule } from "@angular/router";

const routes: Routes = [
  {
    path: "",
    loadChildren: () =>
      import("src/app/pages/home/home.module").then(m => m.HomeModule)
  },
  {
    path: "album",
    loadChildren: () =>
      import("src/app/pages/album/album.module").then(m => m.AlbumModule)
  }
];

@NgModule({
  imports: [RouterModule.forRoot(routes, { useHash: true })],
  exports: [RouterModule]
})
export class AppRoutingModule {}
